<?php
// 用户模型
class Product_mapModel extends CommonModel {
	public $_validate	=	array(
		//array('account','/^[a-z]\w{3,}$/i','帐号格式错误'),
        array('common_id','require','名称必须！'),
        array('out_number','require','名称必须！'),
		array('my_number','number','请选择正确的产品',1),
        //array('tm','','产品条码已经存在！',0,'unique',3),
		);

	protected $_auto = array(
        array('create_time','time',1,'function'),
        array('update_time','time',2,'function'),
        array('out_number','trim',3,'function'), //remove out_number space
        
    );

}
?>
